from fastapi import APIRouter
from intelli_port.config.loader import load_yaml_config


router = APIRouter()


@router.get("/reload")
async def reload(path: str = "config/announcements.yaml"):
    return load_yaml_config(path)